package com.woniu.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;

/**
 * 【客户端（zuul网关）】
 * 1.统一所有功能模块访问的端口，即访问变成：http://ip:端口/功能模块名称/处理器方法请求路径
 * http://localhost:9000/client/hello  --》http://localhost:9000/myclient/hello
 */
@SpringBootApplication
@EnableEurekaClient //开启注册中心的客户端
@EnableZuulProxy //开启网关
public class GatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class, args);
    }

}
